package com.zdp.middleware.ratelimiter.annotation;

import java.lang.annotation.*;

/**
 * 限流注解
 * @author ZhengDp
 * @Date 2023/5/27 15:31
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface DoRateLimiter {

    String returnJson() default "";

    double permitsPerSecond() default 0D; // 每秒钟限制的流量

}
